package cn.efunbox.afw.core.exception;

/**
 * add by tomas 2017-05-22
 * A WebException can be raised to make resty return immediately an HTTP response with a specific HTTP code.
 */
public class ApiException extends AfwRuntimeException {

  /** add by xtwin 2015年12月2日 下午6:22:04 */
  private static final long serialVersionUID = -9017643900656069989L;
  /**
   * 构造方法
   */
  public ApiException(String code,String message) {
    super(message,code, null, null);
  }
  /**
   * 构造方法
   */
  public ApiException(String code, String message, Throwable cause) {
    super(message,code,  null, cause);
  }

  /**
   * 构造方法
   */
  public ApiException(String code, String message, Object[] parameters) {
    super(message,code,parameters);
  }

  /**
   * 构造方法
   */
  public ApiException(String code, String message, Object[] parameters, Throwable cause) {
    super(message,code,parameters,cause);
  }
}
